package com.example.demo.vo;

import com.example.demo.common.serializer.MoneySerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * @author Shanks
 * @date 2020-10-30
 */
@Getter
@Setter
@ToString
@ApiModel(value = "MoneyVO", description = "金额")
public class MoneyVO {

    @ApiModelProperty(value = "m1")
    @JsonSerialize(using = MoneySerializer.class)
    private Integer m1;

    @ApiModelProperty(value = "m2")
    @JsonSerialize(using = MoneySerializer.class)
    private Double m2;

    @ApiModelProperty(value = "m3")
    @JsonSerialize(using = MoneySerializer.class)
    private Long m3;

    @ApiModelProperty(value = "m4")
    @JsonSerialize(using = MoneySerializer.class)
    private BigDecimal m4;
}